﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000089 RID: 137
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AlleyFundsScNotify : IMessage<AlleyFundsScNotify>, IMessage, IEquatable<AlleyFundsScNotify>, IDeepCloneable<AlleyFundsScNotify>, IBufferMessage
	{
		// Token: 0x170001A8 RID: 424
		// (get) Token: 0x060005E7 RID: 1511 RVA: 0x00011520 File Offset: 0x0000F720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AlleyFundsScNotify> Parser
		{
			get
			{
				return AlleyFundsScNotify._parser;
			}
		}

		// Token: 0x170001A9 RID: 425
		// (get) Token: 0x060005E8 RID: 1512 RVA: 0x00011527 File Offset: 0x0000F727
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AlleyFundsScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170001AA RID: 426
		// (get) Token: 0x060005E9 RID: 1513 RVA: 0x00011539 File Offset: 0x0000F739
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AlleyFundsScNotify.Descriptor;
			}
		}

		// Token: 0x060005EA RID: 1514 RVA: 0x00011540 File Offset: 0x0000F740
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyFundsScNotify()
		{
		}

		// Token: 0x060005EB RID: 1515 RVA: 0x00011548 File Offset: 0x0000F748
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyFundsScNotify(AlleyFundsScNotify other) : this()
		{
			this.coinCost_ = other.coinCost_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060005EC RID: 1516 RVA: 0x0001156D File Offset: 0x0000F76D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AlleyFundsScNotify Clone()
		{
			return new AlleyFundsScNotify(this);
		}

		// Token: 0x170001AB RID: 427
		// (get) Token: 0x060005ED RID: 1517 RVA: 0x00011575 File Offset: 0x0000F775
		// (set) Token: 0x060005EE RID: 1518 RVA: 0x0001157D File Offset: 0x0000F77D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CoinCost
		{
			get
			{
				return this.coinCost_;
			}
			set
			{
				this.coinCost_ = value;
			}
		}

		// Token: 0x060005EF RID: 1519 RVA: 0x00011586 File Offset: 0x0000F786
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AlleyFundsScNotify);
		}

		// Token: 0x060005F0 RID: 1520 RVA: 0x00011594 File Offset: 0x0000F794
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AlleyFundsScNotify other)
		{
			return other != null && (other == this || (this.CoinCost == other.CoinCost && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060005F1 RID: 1521 RVA: 0x000115C4 File Offset: 0x0000F7C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CoinCost != 0U)
			{
				num ^= this.CoinCost.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060005F2 RID: 1522 RVA: 0x00011603 File Offset: 0x0000F803
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060005F3 RID: 1523 RVA: 0x0001160B File Offset: 0x0000F80B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060005F4 RID: 1524 RVA: 0x00011614 File Offset: 0x0000F814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CoinCost != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.CoinCost);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060005F5 RID: 1525 RVA: 0x00011648 File Offset: 0x0000F848
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CoinCost != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CoinCost);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060005F6 RID: 1526 RVA: 0x00011686 File Offset: 0x0000F886
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AlleyFundsScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CoinCost != 0U)
			{
				this.CoinCost = other.CoinCost;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060005F7 RID: 1527 RVA: 0x000116B7 File Offset: 0x0000F8B7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060005F8 RID: 1528 RVA: 0x000116C0 File Offset: 0x0000F8C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 96U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.CoinCost = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000225 RID: 549
		private static readonly MessageParser<AlleyFundsScNotify> _parser = new MessageParser<AlleyFundsScNotify>(() => new AlleyFundsScNotify());

		// Token: 0x04000226 RID: 550
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000227 RID: 551
		public const int CoinCostFieldNumber = 12;

		// Token: 0x04000228 RID: 552
		private uint coinCost_;
	}
}
